home *** CD-ROM | disk | FTP | other *** search
/ Champak 49 / Volume 49 - JOGO DISK .iso / Games / honeytrouble.swf / scripts / DefineSprite_491 / frame_1 / DoAction.as
Encoding:
Text File  |  2007-09-27  |  675 b   |  35 lines

  1. stop();
  2. if(_root.gameQuality == "LOW")
  3. {
  4.    this.gotoAndStop(3);
  5. }
  6. else if(_root.gameQuality == "MEDIUM")
  7. {
  8.    this.gotoAndStop(2);
  9. }
  10. else if(_root.gameQuality == "HIGH")
  11. {
  12.    this.gotoAndStop(1);
  13. }
  14. this.onPress = function()
  15. {
  16.    if(this._currentframe == 1)
  17.    {
  18.       this.gotoAndStop(2);
  19.       _root.gameQuality = "MEDIUM";
  20.       _root._quality = "MEDIUM";
  21.    }
  22.    else if(this._currentframe == 2)
  23.    {
  24.       this.gotoAndStop(3);
  25.       _root.gameQuality = "LOW";
  26.       _root._quality = "LOW";
  27.    }
  28.    else if(this._currentframe == 3)
  29.    {
  30.       this.gotoAndStop(1);
  31.       _root.gameQuality = "HIGH";
  32.       _root._quality = "HIGH";
  33.    }
  34. };
  35.